import { ICommand } from './Commander';

class Invoker {
  public commander: ICommand
  // 设置命令
  public setCommand(commander: ICommand) {
    this.commander = commander;
  }
  // 执行命令
  public runCommand() {
    this.commander.execute();
  }
}

export default Invoker